import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '试题简称',
    model: 'name',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入试题简称',
    type: 'input'
  },
  {
    label: '分类',
    model: 'kind',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择分类',
    selectData: []
  },
  {
    label: '题型',
    model: 'type',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择题型',
    selectData: [
      {
        label: '单选',
        value: '0'
      },
      {
        label: '不定项选择',
        value: '1'
      }
    ]
  },
  {
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    type: 'select',
    required: false,
    disabled: true,
    message: '请选择状态',
    selectData: []
  },
  {
    label: '品种',
    model: 'drugId',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择品种',
    selectData: []
  },
  {
    label: '题目',
    model: 'topic',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入题目',
    span: 12,
    type: 'textarea'
  },
  {
    label: '对象',
    model: 'objectType',
    placeholder: '请选择',
    type: 'select',
    dict: 'paper_object_ype',
    required: true,
    disabled: false,
    message: '请选择对象',
    selectData: []
  },
])
interface Parmes {
  status?: any;
  // billingStatus?: number;
  accountTime?: any;
  setTime?: any
  answerList?: any
  [parmse: string]: any
}
const datas = ref<Parmes>({
  answerList: [],
  status: '1'
})
export default { bill, datas }